<?php
/**
 * 商品-规格视图
 * @author 	hanguangchao@gmail.com
 * @date	2013-06-03
 */
class PostTemplateViewModel extends ViewModel {
	public $viewFields = array (
			'Posttemplate' => array (
					'id',
					'comid',
					'tplname',
					'startweight',
					'increaseweight',
					'startprice',
					'increaseprice',
					'tplcontent',
					'_type' => 'LEFT' 
			),
			'Posttemplatedistrict' => array (
					'did',
					'dname',
					'ptdstartprice',
					'ptdincreaseprice',
					'_type' => 'LEFT',
					'_on' => 'Posttemplate.id = Posttemplatedistrict. tplid' 
			),
			'Company' => array (
					'code',
					'name',
					'reg_mail_no',
					'status',
					'_on' => 'Posttemplate.comid = Company.id ' 
			) 
	);
}